all: battleship clean

battleship: Game.o Board.o Coordinate.o Player.o Ship.o
	g++ -Wall -o battleship Game.o Board.o Coordinate.o Player.o Ship.o

Game.o: Game.cpp Board.h
	g++ -Wall -c Game.cpp

Board.o: Board.cpp Board.h
	g++ -Wall -c Board.cpp
	
Coordinate.o: Coordinate.cpp Coordinate.h
	g++ -Wall -c Coordinate.cpp
	
Player.o: Player.cpp Player.h
	g++ -Wall -c Player.cpp
	
Ship.o: Ship.cpp Ship.h
	g++ -Wall -c Ship.cpp

clean:
	rm Game.o Board.o Coordinate.o Player.o Ship.o